/*
 * @Author: your name
 * @Date: 2020-10-14 15:21:04
 * @LastEditTime: 2020-11-06 10:21:09
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \nuxt-iview\plugins\vue-swiper.js
 */
import Vue from 'vue'
// import VueAwesomeSwiper from 'vue-awesome-swiper/dist/vue-awesome-swiper.js'
import VueAwesomeSwiper from 'vue-awesome-swiper/dist/ssr'
import { directive } from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'

// if (process.browser) {
//   const VueAwesomeSwiper = require('vue-awesome-swiper/dist/ssr')
//   Vue.use(VueAwesomeSwiper)
// }
Vue.use(VueAwesomeSwiper)

export default {
  directives: {
    swiper: directive
  },
}
